<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
<span class="s"></span>
<input type="text" id="i1">
<input type="text" id="i2">


<script>
    let spanE = document.querySelector('.s');
    console.log(spanE);
    let inputE1 = document.querySelector('#i1');
    console.log(inputE1);
    let inputE2 = document.getElementById("i2");
    console.log(inputE2);
</script>

</body>
</html>